package com.qf.controller;

import com.qf.service.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WzYu
 * @date 2022-6-13 下午 11:27
 */
@RestController
@RequestMapping("/customer")
public class TestFeignController {
/*    @Autowired
    private ProviderFeign providerFeign;*/
    @Autowired
    private ProviderFeign providerFeign;
    /**
     * 远程调用测试
     */
    @GetMapping("/hello")
    public String hello(){

        return "我是消费者:我要远程调用提供者：结果是：" + providerFeign.test();
    }
}
